/*
package com.chen.controller;

import com.alibaba.fastjson.JSON;
import com.chen.common.Result;
import com.chen.mapper.ArticleMapper;
import com.chen.pojo.Article;
import com.chen.service.Impl.ArticleServiceImpl;
//import com.chen.service.Impl.SpeakServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Service
@RestController
@Api(value = "Speak", tags = "语音")
public class SpeakController {

    @Resource
    private ArticleServiceImpl articleService;
    @Resource
//    private SpeakServiceImpl speakService;

    @Resource
    private ArticleMapper articleMapper;


*/
/*    @PostMapping("/speak")
    @ApiOperation("语音")
    public void speak() {
        List<Article> articles = articleMapper.selectList(null);
        for (Article article : articles) {
            article.getContent();
            speakService.Speak(article.getContent());
        }

    }*//*



    @GetMapping("/queryOne/{id}")
    @ApiOperation("查询")
    public Result<?> getById(@PathVariable("id") Long id) {


        Article byIds = articleService.getByIds(id);
        speakService.Speak(byIds.getContent());
        return articleService.getById(id);
    }

    @GetMapping("/stop")
    public void stop(){
        speakService.stop();
    }


}
*/
